package com.dwxt.sport.business.base;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 分页
 *
 * @author Kuang.JiaZhuo
 * @date 2020-07-24 18:31
 */
@Data
public class Page {

    /**
     * 页码，从1开始
     */
    @ApiModelProperty("起始页,不传默认为1")
    private Integer pageNum;

    public int getPageNum(){
        if(null==pageNum){
            this.pageNum=1;
        }
        return this.pageNum;
    }


    /**
     * 页面大小
     */
    @ApiModelProperty("页大小,不传默认为10")
    private Integer pageSize;

    public int getPageSize(){
        if(null==pageSize){
            this.pageSize=10;
        }
        return this.pageSize;
    }
}
